package com.wixct.repository.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * TODO
 *
 * @author xcwang at 2024/10/21 15:15
 * @version 1.0
 */
@Data
@NoArgsConstructor
@TableName(value = "t_comment")
public class TComment implements Serializable {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 昵称
     */
    @TableField(value = "nickname")
    private String nickname;

    /**
     * 邮箱
     */
    @TableField(value = "email")
    private String email;

    /**
     * 内容
     */
    @TableField(value = "content")
    private String content;

    /**
     * 头像
     */
    @TableField(value = "avatar")
    private String avatar;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 所属博客id
     */
    @TableField(value = "blog_id")
    private Long blogId;

    /**
     * 父评论id
     */
    @TableField(value = "parent_comment_id")
    private Long parentCommentId;

    /**
     * 管理员评论
     */
    @TableField(value = "admin_comment")
    private Boolean adminComment;

    private static final long serialVersionUID = 1L;
}